<?php
//include Header
$path = $_SERVER['DOCUMENT_ROOT'];
include("$path/header.php");
?>


<?php
 $bn=$_POST["bestellingsnummer"];
 echo "
 <HTML>
<head>
<meta http-equiv=\"refresh\" content=\"0; URL=bestelling.php?bn=$bn\">
</head>
<BODY>";
 $aantal=$_POST["aantal"];
 $productnummer=$_POST["productnummer"]; 
 mysql_query("	UPDATE bestelregel
				SET aantal=$aantal
				WHERE bestellingsnummer=$bn
				AND productnummer=$productnummer"); 
 Print "Your information has been successfully added to the database.";
?>
</BODY>
</HTML>

<?php
//include footer
include("$path/footer.php");
?>